package com.iot08.common.response;

/**
 * @version 1.0
 * @author:rock
 * @time:2020年8月11日 上午9:16:48
 */
public enum ResponseEnum {

    STATUS200(200, "请求成功"),
    STATUS400(400, "请求失败"),
    STATUS500(500, "服务异常请稍后重试"),
    STATUS501(501, "请求方式错误"),
    STATUS502(502, "参数%s缺失"),
    STATUS503(503, "重复请求"),


    STATUS2000(2000, "登录已过期，请您重新登录"),
    STATUS2001(2001, "验证码输入有误");

    private int code;
    private String msg;

    private ResponseEnum() {
    }

    private ResponseEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return this.code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return this.msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

}
